package cn.hospital.dao;

import cn.hospital.entity.QueryAuditManagement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QueryAuditManagementMapper {

    /**
     * 查询审核进度
     *
     * @param clinicalDataQueryId
     * @return
     */
    List<QueryAuditManagement> selectByClinicalDataQueryId(@Param("clinicalDataQueryId") String clinicalDataQueryId,
                                                           @Param("queryAuditManagementState") Integer queryAuditManagementState);

    /**
     * 添加审核信息
     *
     * @param queryAuditManagement
     * @return
     */
    Integer addByClinicalDataQueryId(QueryAuditManagement queryAuditManagement);

    /**
     * 根据主键id，修改审核状态，添加审核人，审核时间，审核意见
     * @param queryAuditManagement
     * @return
     */
    Integer updateByQueryAuditManagementId(QueryAuditManagement queryAuditManagement);

    /**
     * 根据查询信息id，删除查询审核信息
     *
     * @param clinicalDataQueryId
     * @return
     */
    Integer deleteByClinicalDataQueryId(String clinicalDataQueryId);
}